﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package validation.util {
    import flash.utils.*;
    import Classes.*;
    import validation.*;

    public class ItemValidationUtil implements IValidationUtilClass {

        protected var m_validators:Dictionary;

        public function ItemValidationUtil(){
            this.loadValidators();
        }
        public function getValidationCallback(_arg1:String):Function{
            return (this.m_validators[_arg1]);
        }
        protected function loadValidators():void{
            this.m_validators = new Dictionary();
            this.m_validators["isType"] = function (_arg1:Object):Boolean{
                var _local2:String = _arg1.type;
                return (((_local2) && (((this as ItemInstance).getItem().type == _local2))));
            };
            this.m_validators["isNotType"] = function (_arg1:Object):Boolean{
                var _local2:String = _arg1.type;
                return (((_local2) && (!(((this as ItemInstance).getItem().type == _local2)))));
            };
        }

    }
}//package validation.util 
